home *** CD-ROM | disk | FTP | other *** search
/ Workbench Add-On / Workbench Add-On - Volume 1.iso / BBS-Archive / Dev / GNU-SMALLTALK.lha / examples / pids.c < prev    next >
C/C++ Source or Header  |  1992-02-15  |  2KB  |  57 lines

  1. /***********************************************************************
  2.  *
  3.  *    Provide access to some UNIX system calls from Smalltalk.
  4.  *    See up.st for details.
  5.  *
  6.  ***********************************************************************/
  7.  
  8.  
  9. /***********************************************************************
  10.  *
  11.  * Copyright (C) 1990, 1991, 1992 Free Software Foundation, Inc.
  12.  * Written by Steve Byrne.
  13.  *
  14.  * This file is part of GNU Smalltalk.
  15.  *
  16.  * GNU Smalltalk is free software; you can redistribute it and/or modify it
  17.  * under the terms of the GNU General Public License as published by the Free
  18.  * Software Foundation; either version 1, or (at your option) any later 
  19.  * version.
  20.  * 
  21.  * GNU Smalltalk is distributed in the hope that it will be useful, but WITHOUT
  22.  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 
  23.  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
  24.  * more details.
  25.  * 
  26.  * You should have received a copy of the GNU General Public License along with
  27.  * GNU Smalltalk; see the file COPYING.  If not, write to the Free Software
  28.  * Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.  
  29.  *
  30.  ***********************************************************************/
  31.  
  32.  
  33.  
  34. extern int getpid(), kill(), killpg(), getpgrp(), setpgrp(), getppid(),
  35.          nice(), fork(), vfork(), execve(), execl(), execle(), execlp(),
  36.          execvp();
  37.  
  38. definePidFuncs()
  39. {
  40.   defineCFunc("getpid", getpid);
  41.   defineCFunc("kill", kill);
  42.   defineCFunc("killpg", killpg);
  43.   defineCFunc("getpgrp", getpgrp);
  44.   defineCFunc("setpgrp", setpgrp);
  45.   defineCFunc("getppid", getppid);
  46.   defineCFunc("nice", nice);
  47.   defineCFunc("fork", fork);
  48.   defineCFunc("vfork", vfork);
  49.   defineCFunc("execve", execve);
  50.   defineCFunc("execl", execl);
  51.   defineCFunc("execle", execle);
  52.   defineCFunc("execlp", execlp);
  53.   defineCFunc("execvp", execvp);
  54. }
  55.  
  56.  
  57.